package com.xjlsoft.weather.enums;

/**
 * 请求类型枚举
 *
 */
public enum TaskUpdatTypeEnum {

	taskType1001("taskType1001", "启动定时任务"),
	taskType1002("taskType1002","关闭定时任务"),
	taskType1003("taskType1003","自动启动定时任务"),
	taskType1004("taskType1004","自动关闭定时任务"),
	taskType1005("taskType1005", "进入任务运行"),
	taskType1006("taskType1005", "任务运行结束");



    private final String value;

    private final String message;

    TaskUpdatTypeEnum(String value, String message) {
        this.value = value;
        this.message = message;
    }

    public String getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }

    public static String valueof(String value) {
        for (TaskUpdatTypeEnum e : TaskUpdatTypeEnum.values()) {
            if (e.getValue().equals(value)) {
                return e.getMessage();
            }
        }
        return null;
    }
    }
